//
//  TicketModel.m
//  Shengzhuli
//
//  Created by FXGuo on 2018/2/10.
//  Copyright © 2018年 kamangkeji. All rights reserved.
//

#import "TicketModel.h"

@implementation TicketModel

- (instancetype)initWithDict:(NSDictionary *)dict
{
    if (self = [super init]) {
        self.name = dict[@"name"];
        self.num = [dict[@"num"] integerValue];
        self.status = dict[@"status"];
        self.ticketNo = dict[@"ticketNo"];
        self.validateTime = dict[@"validateTime"];
        self.ticketLogo = dict[@"ticketLogo"];
        self.ticketId = dict[@"ticketId"];
        self.type = dict[@"type"];
    }
    return self;
}

+ (instancetype)objectWithDict:(NSDictionary *)dict
{
    return [[TicketModel alloc]initWithDict:dict];
}

@end
